package com.czy.basecommon.utils.global;

import android.app.Activity;
import android.app.Application;
import android.bluetooth.BluetoothSocket;
import android.content.Context;
import android.content.res.Configuration;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.os.StrictMode;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.multidex.MultiDexApplication;

import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

/**
 * @author Jake Han
 */
public class ItrackApp extends MultiDexApplication {
    public static Context context;


    //不管是蓝牙连接方还是服务器方，得到socket对象后都传入
    public static BluetoothSocket bluetoothSocket;



    public static final Map<String,Boolean> map =new HashMap<String,Boolean>();


    public static void  setValue(String key,boolean value){
        map.put(key,value);
    }
    public static   Map getMap(){
        return  map;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        context = getApplicationContext();
        StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
        StrictMode.setVmPolicy(builder.build());


    }



}
